using System;
using System.Collections.Generic;
using System.Text;
using GRE.Framework;

namespace GRE.Logics
{
    public class Etymology
    {
        private string _language = string.Empty;
        public string Language
        {
            get
            {
                return StringHelper.CleanString(_language);
            }
            set
            {
                _language = value;
            }
        }

        private string _description = string.Empty;
        public string Description
        {
            get
            {
                return StringHelper.CleanString(_description);
            }
            set
            {
                _description = value;
            }
        }

        private List<EtymologyWord> _etymWords = null;
        public List<EtymologyWord> EtymologyWords
        {
            get
            {
                if (_etymWords == null)
                {
                    _etymWords = new List<EtymologyWord>();
                }
                return _etymWords;
            }
        }
        public void AddWord(EtymologyWord etymWord)
        {
            EtymologyWords.Add(etymWord);
        }
    }
}
